﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public class V_UserModuleService
    {
        /// <summary>
        /// 根据用户名获取用户模块信息
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        public static List<V_UserModuleMessage> GetV_UserModuleMessage(string userName)
        {
            using (ShopDemoContextt db = new ShopDemoContextt())
            {
                return db.V_UserModuleMessage.Where(p => p.UserName == userName).ToList();
            }
        }
    }
}
